package com.ssh.entity;

import java.sql.Timestamp;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Entity
public class TaskProductEmployee extends BaseEntity{
	private static final long serialVersionUID = 6002548593623858681L;
	private Timestamp startDate;
	private Timestamp endDate;
	private Timestamp createDate;
	private Integer del;
	private int planStock;
	private String fenxiao;
	private String chenlie;
	private String duitou;
	
	private TaskBrand taskBrand;
	private Employee employee;
	private SuperMarketProduct superMarketProduct;
	
	public TaskProductEmployee() {
	}

	@ManyToOne(cascade ={CascadeType.ALL},fetch = FetchType.LAZY)       
    @JoinColumn(name="taskBrandId") 
	public TaskBrand getTaskBrand() {
		return taskBrand;
	}

	public void setTaskBrand(TaskBrand taskBrand) {
		this.taskBrand = taskBrand;
	}

	@ManyToOne(cascade ={CascadeType.ALL},fetch = FetchType.LAZY)       
    @JoinColumn(name="employeeId") 
	public Employee getEmployee() {
		return employee;
	}

	public void setEmployee(Employee employee) {
		this.employee = employee;
	}

	@ManyToOne(cascade ={CascadeType.ALL},fetch = FetchType.LAZY)       
    @JoinColumn(name="superMarketProductId") 
	public SuperMarketProduct getSuperMarketProduct() {
		return superMarketProduct;
	}

	public void setSuperMarketProduct(SuperMarketProduct superMarketProduct) {
		this.superMarketProduct = superMarketProduct;
	}

	public Timestamp getStartDate() {
		return this.startDate;
	}

	public void setStartDate(Timestamp startDate) {
		this.startDate = startDate;
	}

	public Timestamp getEndDate() {
		return this.endDate;
	}

	public void setEndDate(Timestamp endDate) {
		this.endDate = endDate;
	}
   
	
	public Timestamp getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Timestamp createDate) {
		this.createDate = createDate;
	}

	public Integer getDel() {
		return this.del;
	}

	public void setDel(Integer del) {
		this.del = del;
	}

	public int getPlanStock() {
		return planStock;
	}

	public void setPlanStock(int planStock) {
		this.planStock = planStock;
	}

	public String getFenxiao() {
		return fenxiao;
	}

	public void setFenxiao(String fenxiao) {
		this.fenxiao = fenxiao;
	}

	public String getChenlie() {
		return chenlie;
	}

	public void setChenlie(String chenlie) {
		this.chenlie = chenlie;
	}

	public String getDuitou() {
		return duitou;
	}

	public void setDuitou(String duitou) {
		this.duitou = duitou;
	}
}